

#ifndef __COMMONSTRUCT_H__
#define __COMMONSTRUCT_H__

//function count defferent character
int CountDefferentByte(char* string, int sizeString)
{
	int count = 1; // number of defferent character
	char tempCharacter = string[0];
	for (int i = 0; i < sizeString; ++i){
		if (tempCharacter != string[i]){
			count++;
			tempCharacter = string[i];
		}
	}
	return count;
}

int strlen(char *_string)
{
	int _temp = 0;
	while ((_string[_temp] != '\0')) _temp++;
	return _temp;
}
#endif